package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SStallLeaveWord extends Object implements IMessageBase
    {
        public var leaveWordDt:Date;
        public var player:SPublicMiniPlayer;
        public var type:int;
        public var gold:int;
        public var coin:int;
        public var amount:int;
        public var playerItem:SPlayerItem;
        public var msg:String;
        public const _type:int = 20304;
        public static var _regist:SStallLeaveWord = new SStallLeaveWord(true);

        public function SStallLeaveWord(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SStallLeaveWord();
        }

        public function __write(param1:SerializeStream) : void
        {
            param1.writeDate(this.leaveWordDt);
            this.player.__write(param1);
            param1.writeInt(this.type);
            param1.writeInt(this.gold);
            param1.writeInt(this.coin);
            param1.writeInt(this.amount);
            this.playerItem.__write(param1);
            param1.writeString(this.msg);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.leaveWordDt = param1.readDate();
            this.player = new SPublicMiniPlayer();
            this.player.__read(param1);
            this.type = param1.readInt();
            this.gold = param1.readInt();
            this.coin = param1.readInt();
            this.amount = param1.readInt();
            this.playerItem = new SPlayerItem();
            this.playerItem.__read(param1);
            this.msg = param1.readString();
            
        }

    }
}
